

function render () {
    var module = window.location.hash.substr(1);
    console.log(module);
    switch (module) {
            case 'about': 
                  require.ensure([], function(require) {
                     require('./js/about');
                  },"about"); 
            break;
            case 'inbox': 
                  require.ensure([], function(require) {
                     require('./js/inbox');
                  },"inbox");  
            break;
            default:       
                require.ensure([], function(require) {
                     require('./js/home');
                },"home");
      }
}

window.addEventListener('hashchange', render);
